package com.zdy.im.user.vo.response;

import com.sixeco.framework.common.api.ApiDesc;

public class Oauth2TokenDto {
    /**
     * 访问令牌
     */
    @ApiDesc(value = "token", required = 0)
    private String access_token;
    /**
     * 刷新令牌
     */
    @ApiDesc(value = "刷新令牌token", required = 0)
    private String refresh_token;
    private String token_type;
    private String scope;
    //@ApiDesc(value = "expires_in", required = 0)
    private int expires_in;
    @ApiDesc(value = "用户id", required = 0)
    private long user_id;
    /** me 个人信息  */
    @ApiDesc(value = "客服系统时候适用:个人信息", required = 0)
    private UserInfoShowResponseExt me;
    /** customer 游客信息  */
    @ApiDesc(value = "客服系统时候适用:游客信息", required = 0)
    private UserInfoShowResponseExt customer;
    /** im 服务握手协议连接 */
    @ApiDesc(value = "客服系统时候适用:im 服务握手协议连接")
    private String wsUrl;

    public static Oauth2TokenDto build(){
        return new Oauth2TokenDto();
    }

    public Oauth2TokenDto toAccess_token(String access_token) {
        this.access_token = access_token;
        return this;
    }

    public Oauth2TokenDto toRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
        return this;
    }

    public Oauth2TokenDto toToken_type(String token_type) {
        this.token_type = token_type;
        return this;
    }

    public Oauth2TokenDto toScope(String scope) {
        this.scope = scope;
        return this;
    }

    public Oauth2TokenDto toExpires_in(int expires_in) {
        this.expires_in = expires_in;
        return this;
    }

    public Oauth2TokenDto toUser_id(long user_id) {
        this.user_id = user_id;
        return this;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getToken_type() {
        return token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    public long getUser_id() {
        return user_id;
    }

    public void setUser_id(long user_id) {
        this.user_id = user_id;
    }

    public Oauth2TokenDto toMe(UserInfoShowResponseExt me) {
        this.me = me;
        return this;
    }

    public Oauth2TokenDto toCustomer(UserInfoShowResponseExt customer) {
        this.customer = customer;
        return this;
    }

    public Oauth2TokenDto toWsUrl(String wsUrl) {
        this.wsUrl = wsUrl;
        return this;
    }

    public UserInfoShowResponseExt getMe() {
        return me;
    }

    public void setMe(UserInfoShowResponseExt me) {
        this.me = me;
    }

    public UserInfoShowResponseExt getCustomer() {
        return customer;
    }

    public void setCustomer(UserInfoShowResponseExt customer) {
        this.customer = customer;
    }

    public String getWsUrl() {
        return wsUrl;
    }

    public void setWsUrl(String wsUrl) {
        this.wsUrl = wsUrl;
    }
}
